import { Module } from '@nestjs/common';
import { FactoryModule } from '../factory/factory.module';
import { PullController } from './pull.controller';
import { PullService } from './pull.service';

@Module({
  imports: [FactoryModule],
  controllers: [PullController],
  providers: [
    {
      provide: 'PULL',
      useFactory: () => {
        console.log(new FactoryModule());
        return new PullService();
      },
    },
  ],
})
export class PullModule {}
